﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace INHOADON_TAMVAN
{
    public class FormUtility
    {
        public static Boolean IsExisted(System.Windows.Forms.Form formObj)
        {
            if (formObj == null)
            {
                return false;
            }
            else if (formObj.IsDisposed)
            {
                return false;
            }
            return true;
        }

        public static void ShowForm(ref System.Windows.Forms.Form formObj, System.Type typeObj)
        {
            if (IsExisted(formObj))
            {

            }
            else
            {
               
            }
            formObj.Show();            
        }
    }
}
